﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Marmat.Foundation
{
    public class SelectionRecordFormPaginationSearchEventArgs : SelectionRecordFormSearchEventArgs
    {
        public SelectionRecordFormPaginationSearchEventArgs(string filter, int loadPage) : base(filter)
        {
            this.LoadPage = loadPage;
        }

        /// <summary>
        /// 获取当前需要加载的页号。
        /// </summary>
        public int LoadPage { get; }

        /// <summary>
        /// 获取或设置本次搜索的总记录数，用于计算页数。
        /// </summary>
        public int TotalCount { get; set; }
    }
}
